<%@ page language="java" import="java.util.*,com.edu.ujn.myh.domain.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="css/styles.css">
  </head>
  
  <body>
     		<fieldset>
  			<legend>专家任务表</legend>
  			<table>
  				 <tr>
  				 	 <th>任务ID</th>
  				 	 <th>任务名称</th>
  				 	 <th>执行ID</th>
  				 	 <th>执行者</th>
  				 	 <th>选择</th>
  				 </tr>
  				 <% List taskList = (List)request.getAttribute("taskList"); 
  				 	if(taskList==null||taskList.size()==0){
  				 %>
  				 <tr>
  				 	<td colspan="5">您当前没有任务</td>
  				 </tr>
  				 <%} else {
  				 	for(int n=0;n<taskList.size();n++){
  				 	//	String[] task = (String[])taskList.get(n);
  				 		TaskInfo taskInfo = (TaskInfo)taskList.get(n);
  				 %>
  				 	<tr onmouseover="this.className='mouseOver'" onmouseout="this.className='mouseOut'">
  				 		<td><%=taskInfo.getTaskId() %></td>
  				 		<td><%=taskInfo.getTaskName() %></td>
  				 		<td><%=taskInfo.getExecutionId() %></td>
  				 		<td><%=taskInfo.getUserName() %></td>
  				 		<td><a href="getZJArticleAction.action?taskId=<%=taskInfo.getTaskId()%>&executionId=<%=taskInfo.getExecutionId() %>">查看稿件</a></td>
  				 	</tr>
  				 <%}} %>
  			</table>
  		</fieldset>
  </body>
</html>
